import request from '@/utils/request'

// 查询车间绩效系数列表
export function listWsbase(query) {
  return request({
    url: '/sl/wsbase/list',
    method: 'get',
    params: query
  })
}

// 查询车间绩效系数详细
export function getWsbase(wsbaseId) {
  return request({
    url: '/sl/wsbase/' + wsbaseId,
    method: 'get'
  })
}

// 新增车间绩效系数
export function addWsbase(data) {
  return request({
    url: '/sl/wsbase',
    method: 'post',
    data: data
  })
}

// 修改车间绩效系数
export function updateWsbase(data) {
  return request({
    url: '/sl/wsbase',
    method: 'put',
    data: data
  })
}

// 删除车间绩效系数
export function delWsbase(wsbaseId) {
  return request({
    url: '/sl/wsbase/' + wsbaseId,
    method: 'delete'
  })
}
